package com.yuhong.utils;

public class ByValueTest {
    public static void main(String[] args) {
        Integer y = 9;
        System.out.println("y:" + y + ":" + Integer.toHexString(System.identityHashCode(y)) );
        tri(y);
        System.out.println("y:" + y + ":" + Integer.toHexString(System.identityHashCode(y)) );
    }

    public static void tri(Integer x) {
        System.out.println("x:" + x + ":" + Integer.toHexString(System.identityHashCode(x)));
        x = x + 1;
        System.out.println("x:" + x + ":" + Integer.toHexString(System.identityHashCode(x)));
    }
}
